package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Destination;
import cn.wolfcode.luowowo.domain.Region;
import cn.wolfcode.luowowo.query.DestinationQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IDestinationService {
    List<Destination> list();

    List<Destination> getDestByRegionId(String rid);

    Page<Destination> query(DestinationQuery qo);

    List<Destination> getToasts(String parentId);

    Destination get(String parentId);

    /**
     *
     * @param regionId
     * @return
     */
    List<Destination> queryByReginIdForApi(String regionId);

    Destination select(String id);

    void updateInfo(Destination dest);

    Destination queryByName(String name);
}
